createAudioFromVideo

abstract fun createAudioFromVideo(videoFill: DesignBlock, trackIndex: Int, options: AudioFromVideoOptions = AudioFromVideoOptions()): DesignBlock

Create a new audio block by extracting a specific audio track from a video fill block.

Return

the handle of the newly created audio block.

Parameters

videoFill

the video fill block to extract audio from.

trackIndex

the index of the audio track to extract (0-based).

keepTrimSettings

if true, the extracted audio block will have the same trim settings (offset and length) as the video block.

muteOriginalVideo

if true, mutes the audio of the original video fill block.